<tr class="<%= cycle("odd", "even") %>">
    <td><%= link_to pdsession.title, pdsession %></td>
	<td><%=h pdsession.category %></td>
	<td><%=h pdsession.start.strftime("%d/%m/%y %I:%M%p") %></td>
	<td><%=h pdsession.duration %> hrs</td>
	<% if current_user.role == 'PDAdmin' %>
		<td><%= link_to 'Edit', edit_pdsession_path(pdsession) %></td>
		<td><%= link_to 'Delete', pdsession, :confirm => 'Are you sure?', :method => :delete %></td>
	<% elsif pdsession.start > Time.now %>
		<td><%= link_to link_text, :controller => 'attends', :action => link_action, :id => pdsession %></td>
	<% else %>
		<td>&nbsp;</td>
	<% end %>
</tr>